<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>我的入场券 - 钓鱼小程序</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        /* 移动端滚动条优化 - 隐藏滚动条 */
        ::-webkit-scrollbar {
            display: none;
        }
        
        * {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: #f5f7fa;
            padding-bottom: 60px;
            padding-top: 100px;
            color: #333;
            line-height: 1.6;
            max-width: 375px;
            margin: 0 auto;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        .header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background: #ffffff;
            padding: 10px 15px;
            border-bottom: 1px solid #e8e8e8;
            display: flex;
            align-items: center;
            gap: 15px;
            z-index: 100;
        }

        .back-btn {
            font-size: 18px;
            color: #3498DB;
        }

        .header-title {
            font-size: 18px;
            font-weight: 600;
            color: #2c3e50;
            flex: 1;
        }

        /* 小程序胶囊按钮 */
        .capsule-btn {
            background: rgba(0,0,0,0.1);
            border-radius: 16px;
            padding: 6px 12px;
            display: flex;
            align-items: center;
            gap: 8px;
            margin-left: 8px;
        }
        
        .capsule-btn .dot {
            width: 4px;
            height: 4px;
            background: #666;
            border-radius: 50%;
        }

        .filter-bar {
            position: fixed;
            top: 50px;
            left: 0;
            right: 0;
            background: #ffffff;
            padding: 10px 15px;
            border-bottom: 1px solid #e8e8e8;
            display: flex;
            gap: 20px;
            z-index: 99;
        }

        .ticket-tabs {
            position: fixed;
            top: 50px;
            left: 0;
            right: 0;
            background: rgba(255,255,255,0.95);
            backdrop-filter: blur(10px);
            padding: 12px 0;
            border-bottom: 1px solid rgba(232,232,232,0.5);
            overflow-x: auto;
            z-index: 99;
        }

        .tabs {
            background: white;
            display: flex;
            border-bottom: 1px solid #eee;
        }

        .tab {
            flex: 1;
            padding: 12px;
            text-align: center;
            font-size: 14px;
            color: #666;
            cursor: pointer;
            position: relative;
        }

        .tab.active {
            color: #3498DB;
            font-weight: 500;
        }

        .tab.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 30px;
            height: 2px;
            background: #3498DB;
        }

        .main-content {
            flex: 1;
            padding: 16px;
        }

        .ticket-card {
            background: white;
            border-radius: 12px;
            margin-bottom: 16px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .ticket-header {
            padding: 16px;
            background: linear-gradient(135deg, #3498DB, #2980B9);
            color: white;
            position: relative;
        }

        .ticket-header::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            right: 0;
            height: 16px;
            background: radial-gradient(circle at 8px 8px, transparent 8px, white 8px);
            background-size: 16px 16px;
        }

        .ticket-venue {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 4px;
        }

        .ticket-type {
            font-size: 14px;
            opacity: 0.9;
        }

        .ticket-status {
            position: absolute;
            top: 16px;
            right: 16px;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 500;
        }

        .status-unused {
            background: rgba(255,255,255,0.2);
            color: white;
        }

        .status-used {
            background: rgba(255,255,255,0.2);
            color: white;
        }

        .status-expired {
            background: rgba(255,255,255,0.2);
            color: white;
        }

        .ticket-body {
            padding: 16px;
        }

        .ticket-info {
            display: flex;
            justify-content: space-between;
            margin-bottom: 12px;
        }

        .info-item {
            text-align: center;
        }

        .info-label {
            font-size: 12px;
            color: #666;
            margin-bottom: 4px;
        }

        .info-value {
            font-size: 14px;
            font-weight: 500;
            color: #333;
        }

        .ticket-details {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 12px;
            margin-bottom: 12px;
        }

        .detail-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            font-size: 13px;
        }

        .detail-row:last-child {
            margin-bottom: 0;
        }

        .detail-label {
            color: #666;
        }

        .detail-value {
            color: #333;
            font-weight: 500;
        }

        .ticket-actions {
            display: flex;
            gap: 12px;
        }

        .action-btn {
            flex: 1;
            padding: 10px;
            border: 1px solid #3498DB;
            border-radius: 6px;
            background: white;
            color: #3498DB;
            font-size: 14px;
            cursor: pointer;
            text-align: center;
            text-decoration: none;
        }

        .action-btn.primary {
            background: #3498DB;
            color: white;
        }

        .action-btn:disabled {
            background: #f5f5f5;
            color: #999;
            border-color: #ddd;
            cursor: not-allowed;
        }

        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: #999;
        }

        .empty-icon {
            width: 80px;
            height: 80px;
            background: #f0f0f0;
            border-radius: 50%;
            margin: 0 auto 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
        }

        .empty-text {
            font-size: 14px;
            margin-bottom: 20px;
        }

        .go-buy-btn {
            background: #3498DB;
            color: white;
            border: none;
            border-radius: 20px;
            padding: 10px 24px;
            font-size: 14px;
            cursor: pointer;
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        .qr-code-section {
            text-align: center;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 8px;
            margin-bottom: 12px;
        }

        .qr-code {
            width: 120px;
            height: 120px;
            background: white;
            border: 1px solid #ddd;
            border-radius: 8px;
            margin: 0 auto 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            color: #666;
        }

        .qr-tip {
            font-size: 12px;
            color: #666;
        }
    </style>
</head>
<body>
    <div class="header">
        <button class="back-btn">←</button>
        <h1 class="header-title">我的入场券</h1>
        <div class="capsule-btn">
            <div class="dot"></div>
            <div class="dot"></div>
            <div class="dot"></div>
        </div>
    </div>

    <div class="ticket-tabs">
        <div class="tab active" data-tab="unused">未使用</div>
        <div class="tab" data-tab="used">已使用</div>
        <div class="tab" data-tab="expired">已过期</div>
    </div>

    <div class="main-content">
        <!-- 未使用入场券 -->
        <div class="tab-content active" id="unused">
            <div class="ticket-card">
                <div class="ticket-header">
                    <div class="ticket-venue">碧波湖钓鱼场</div>
                    <div class="ticket-type">全天钓鱼票</div>
                    <div class="ticket-status status-unused">未使用</div>
                </div>
                <div class="ticket-body">
                    <div class="ticket-info">
                        <div class="info-item">
                            <div class="info-label">购买日期</div>
                            <div class="info-value">2024-01-15</div>
                        </div>
                        <div class="info-item">
                            <div class="info-label">有效期至</div>
                            <div class="info-value">2024-02-15</div>
                        </div>
                        <div class="info-item">
                            <div class="info-label">票价</div>
                            <div class="info-value">¥88</div>
                        </div>
                    </div>

                    <div class="qr-code-section">
                        <div class="qr-code">
                            <div>入场二维码</div>
                        </div>
                        <div class="qr-tip">请在钓场入口扫码核销</div>
                    </div>

                    <div class="ticket-details">
                        <div class="detail-row">
                            <span class="detail-label">订单号</span>
                            <span class="detail-value">TK202401150001</span>
                        </div>
                        <div class="detail-row">
                            <span class="detail-label">钓位类型</span>
                            <span class="detail-value">普通钓位</span>
                        </div>
                        <div class="detail-row">
                            <span class="detail-label">包含服务</span>
                            <span class="detail-value">钓椅、遮阳伞</span>
                        </div>
                        <div class="detail-row">
                            <span class="detail-label">联系电话</span>
                            <span class="detail-value">400-888-9999</span>
                        </div>
                    </div>

                    <div class="ticket-actions">
                        <a href="qr-code.html" class="action-btn primary">查看二维码</a>
                        <button class="action-btn">联系客服</button>
                    </div>
                </div>
            </div>

            <div class="ticket-card">
                <div class="ticket-header">
                    <div class="ticket-venue">青山湖垂钓园</div>
                    <div class="ticket-type">半天钓鱼票</div>
                    <div class="ticket-status status-unused">未使用</div>
                </div>
                <div class="ticket-body">
                    <div class="ticket-info">
                        <div class="info-item">
                            <div class="info-label">购买日期</div>
                            <div class="info-value">2024-01-20</div>
                        </div>
                        <div class="info-item">
                            <div class="info-label">有效期至</div>
                            <div class="info-value">2024-02-20</div>
                        </div>
                        <div class="info-item">
                            <div class="info-label">票价</div>
                            <div class="info-value">¥58</div>
                        </div>
                    </div>

                    <div class="qr-code-section">
                        <div class="qr-code">
                            <div>入场二维码</div>
                        </div>
                        <div class="qr-tip">请在钓场入口扫码核销</div>
                    </div>

                    <div class="ticket-details">
                        <div class="detail-row">
                            <span class="detail-label">订单号</span>
                            <span class="detail-value">TK202401200002</span>
                        </div>
                        <div class="detail-row">
                            <span class="detail-label">钓位类型</span>
                            <span class="detail-value">VIP钓位</span>
                        </div>
                        <div class="detail-row">
                            <span class="detail-label">包含服务</span>
                            <span class="detail-value">钓椅、遮阳伞、茶水</span>
                        </div>
                        <div class="detail-row">
                            <span class="detail-label">联系电话</span>
                            <span class="detail-value">400-777-8888</span>
                        </div>
                    </div>

                    <div class="ticket-actions">
                        <a href="qr-code.html" class="action-btn primary">查看二维码</a>
                        <button class="action-btn">联系客服</button>
                    </div>
                </div>
            </div>
        </div>

        <!-- 已使用入场券 -->
        <div class="tab-content" id="used">
            <div class="ticket-card">
                <div class="ticket-header">
                    <div class="ticket-venue">东湖钓鱼基地</div>
                    <div class="ticket-type">全天钓鱼票</div>
                    <div class="ticket-status status-used">已使用</div>
                </div>
                <div class="ticket-body">
                    <div class="ticket-info">
                        <div class="info-item">
                            <div class="info-label">使用日期</div>
                            <div class="info-value">2024-01-10</div>
                        </div>
                        <div class="info-item">
                            <div class="info-label">钓鱼时长</div>
                            <div class="info-value">6小时</div>
                        </div>
                        <div class="info-item">
                            <div class="info-label">票价</div>
                            <div class="info-value">¥98</div>
                        </div>
                    </div>

                    <div class="ticket-details">
                        <div class="detail-row">
                            <span class="detail-label">订单号</span>
                            <span class="detail-value">TK202401100001</span>
                        </div>
                        <div class="detail-row">
                            <span class="detail-label">入场时间</span>
                            <span class="detail-value">08:30</span>
                        </div>
                        <div class="detail-row">
                            <span class="detail-label">离场时间</span>
                            <span class="detail-value">14:30</span>
                        </div>
                        <div class="detail-row">
                            <span class="detail-label">钓获记录</span>
                            <span class="detail-value">鲫鱼 3条，草鱼 1条</span>
                        </div>
                    </div>

                    <div class="ticket-actions">
                        <button class="action-btn">再次购买</button>
                        <button class="action-btn">分享体验</button>
                    </div>
                </div>
            </div>
        </div>

        <!-- 已过期入场券 -->
        <div class="tab-content" id="expired">
            <div class="empty-state">
                <div class="empty-icon">🎫</div>
                <div class="empty-text">暂无过期的入场券</div>
                <button class="go-buy-btn">去购买入场券</button>
            </div>
        </div>
    </div>

    <script>
        // Tab切换功能
        document.querySelectorAll('.tab').forEach(tab => {
            tab.addEventListener('click', function() {
                const tabName = this.dataset.tab;
                
                // 切换tab样式
                document.querySelectorAll('.tab').forEach(t => t.classList.remove('active'));
                this.classList.add('active');
                
                // 切换内容
                document.querySelectorAll('.tab-content').forEach(content => {
                    content.classList.remove('active');
                });
                document.getElementById(tabName).classList.add('active');
            });
        });
    </script>
</body>
</html> 